<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/common/header.jsp"%>
<html>
 
<body class="easyui-layout list_body"  >
	<form id="pinganForm" name="pinganForm">
		<div class="list_body_north" data-options="region:'north'"  border="false" >		 
			<!-- 自定义标签工具栏 -->
			<jiepos:buttonOperateTag menuCode="${menuCode}"></jiepos:buttonOperateTag>	
		</div>
		<div data-options="region:'center'" border="false"  class="list_body_center">		
			<!-- 表格 -->
			<table id="pinganTable" fit="true"></table>
		</div>
			<input type="hidden" id="fileName" name="fileName"/>
		<input type="hidden" id="filePath" name="filePath"/>
	</form>
</body>
<script type="text/javascript">
	var grid;
	$(function() {
		/*加载表格数据*/
		grid = $("#pinganTable").jpgrid({
			url : "pinganExcelJson.do",
			baseColumns: false,
			columns: [
				{title: "文件名称", field: "fileName"}
			]
		});
	});
	
	function exportExcel(url){
		var data = checkSelected("pinganTable", true);
		if(data === false){
			return;
		}else{
			$("#fileName").val(data[0].fileName);
			$("#filePath").val(data[0].filePath);
		}
		commonFileDownload(url, "pinganForm");
	}
</script>
</html>
